home *** CD-ROM | disk | FTP | other *** search
- /*
- ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
- ▒ ▒
- ▒ ▒
- ▒ Neuromancer's Graphics Library ▒
- ▒ Version 1.0c ▒
- ▒ ▒
- ▒ This routine demonstrates rectangle and filled ▒
- ▒ rectangles followed by clipped rectangles ▒
- ▒ ▒
- ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
- ▒ ▒
- ▒ Project: MTLIB01.LIB ▒
- ▒ DEMO3.CPP ▒
- ▒ ▒
- ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
- */
- #include <iostream.h>
- #include <stdlib.h>
- #include <conio.h>
- #include "video.h"
- #include "rect.h"
-
- void main(void)
- {
-
- mtSetVGAMode(); //Set up VGA Mode
-
-
- while(!kbhit())
- {
- mtRect(random(320),random(200),random(320),random(200), random(256));
- }
-
- getch();
-
- while(!kbhit())
- {
- mtFillRect(random(320),random(200),random(320),random(200), random(256));
- }
-
- getch();
-
- mtClrScr(0);
-
- mtSetWindow(15,15,304,184); //set up clip region
- mtClrScr(15); //clear region to color 15
-
- while(!kbhit())
- {
- mtCRect(random(320),random(200),random(320),random(200), random(256));
- }
-
- getch();
-
- while(!kbhit())
- {
- mtCFillRect(random(320),random(200),random(320),random(200), random(256));
- }
-
- getch();
- mtSetTextMode();
-
- cout << "Thank you for using the library!" << endl;
-
- exit(0);
-
- }
-
-
-
-
-
-
-
-